package abg.core.domain.db;

import abg.core.common.mybatis.config.FieldInsert;
import abg.core.common.mybatis.config.FieldSet;
import abg.core.common.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 模板表-默认
 *
 * @since 2023-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "zend_default", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class ADefault extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //显示顺序，默认为100
    private int sort;
    //PID
    private String pid;

    //当前层级，根节点=0
    private int level;

    //层级全路径，JSON字符串数组
    private String treePath;

    //备注
    private String remark;
}
